package persondog;

public class Girl {
	private String name;
	private Dog dog;  // 拥有狗的引用
	public Girl() {
		super();
	}

	public Girl(String name, Dog dog) {
		super();
		this.name = name;
		this.dog = dog;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Dog getDog() {
		return dog;
	}

	public void setDog(Dog dog) {
		this.dog = dog;
	}
	// 洗澡
	public void washDog( ) {
		System.out.println(this.name + "给" + dog.getColor() + "颜色的" + dog.getName() + "洗澡");
	}
	// 拍照
	public void psDog( ) {
		System.out.println(this.name + "给" + dog.getColor() + "颜色的" + dog.getName() + "拍照");
	}
}
